package com.zhitong.money.entity;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Author: Andy Zhang
 * @Description:
 * @Date: 12:15 2021/3/12
 * @Company: wisecard
 */
public class AuthToken extends UsernamePasswordToken {
    private String token;

    public AuthToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
